package com.xk.demo.ptDuty.mapper;

import com.xk.demo.mybatis.entity.PtDutyEntity;
import com.xk.demo.mybatis.entity.PtRoleEntity;
import com.xk.demo.mybatis.flexigrid.PagingBean;
import com.xk.demo.mybatis.ztree.ZtreeEntity;
import com.xk.demo.ptDuty.entity.PtDutySearchEntity;
import com.xk.demo.role.entity.SearchRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:XK
 * @Date: Created in 17:14 2022/5/16
 * @Description：
 **/
@Mapper
public interface PtDutyDao {
    List<PtDutyEntity> queryDutyListByPage(@Param("search") PtDutySearchEntity search, @Param("paging") PagingBean paging);

    Integer queryDutyListTotal(@Param("search") PtDutySearchEntity search);

    List<ZtreeEntity> getDutyZtreeList();

    List<PtDutySearchEntity> listByOrgan(@Param("ORGAN_UUID") String ORGAN_UUID);

    int insertNewPt(@Param("ptDutyEntity") PtDutyEntity ptDutyEntity);

    int deleteDuty(@Param("dutyid") String dutyId);


}
